package com.example.telesys.pojo;

import java.util.ArrayList;
import java.util.List;

public class BroadbandExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BroadbandExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBroadbandidIsNull() {
            addCriterion("broadbandid is null");
            return (Criteria) this;
        }

        public Criteria andBroadbandidIsNotNull() {
            addCriterion("broadbandid is not null");
            return (Criteria) this;
        }

        public Criteria andBroadbandidEqualTo(String value) {
            addCriterion("broadbandid =", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidNotEqualTo(String value) {
            addCriterion("broadbandid <>", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidGreaterThan(String value) {
            addCriterion("broadbandid >", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidGreaterThanOrEqualTo(String value) {
            addCriterion("broadbandid >=", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidLessThan(String value) {
            addCriterion("broadbandid <", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidLessThanOrEqualTo(String value) {
            addCriterion("broadbandid <=", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidLike(String value) {
            addCriterion("broadbandid like", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidNotLike(String value) {
            addCriterion("broadbandid not like", value, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidIn(List<String> values) {
            addCriterion("broadbandid in", values, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidNotIn(List<String> values) {
            addCriterion("broadbandid not in", values, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidBetween(String value1, String value2) {
            addCriterion("broadbandid between", value1, value2, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandidNotBetween(String value1, String value2) {
            addCriterion("broadbandid not between", value1, value2, "broadbandid");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameIsNull() {
            addCriterion("broadbandname is null");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameIsNotNull() {
            addCriterion("broadbandname is not null");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameEqualTo(String value) {
            addCriterion("broadbandname =", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameNotEqualTo(String value) {
            addCriterion("broadbandname <>", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameGreaterThan(String value) {
            addCriterion("broadbandname >", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameGreaterThanOrEqualTo(String value) {
            addCriterion("broadbandname >=", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameLessThan(String value) {
            addCriterion("broadbandname <", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameLessThanOrEqualTo(String value) {
            addCriterion("broadbandname <=", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameLike(String value) {
            addCriterion("broadbandname like", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameNotLike(String value) {
            addCriterion("broadbandname not like", value, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameIn(List<String> values) {
            addCriterion("broadbandname in", values, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameNotIn(List<String> values) {
            addCriterion("broadbandname not in", values, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameBetween(String value1, String value2) {
            addCriterion("broadbandname between", value1, value2, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandnameNotBetween(String value1, String value2) {
            addCriterion("broadbandname not between", value1, value2, "broadbandname");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleIsNull() {
            addCriterion("broadbandtitle is null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleIsNotNull() {
            addCriterion("broadbandtitle is not null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleEqualTo(String value) {
            addCriterion("broadbandtitle =", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleNotEqualTo(String value) {
            addCriterion("broadbandtitle <>", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleGreaterThan(String value) {
            addCriterion("broadbandtitle >", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleGreaterThanOrEqualTo(String value) {
            addCriterion("broadbandtitle >=", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleLessThan(String value) {
            addCriterion("broadbandtitle <", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleLessThanOrEqualTo(String value) {
            addCriterion("broadbandtitle <=", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleLike(String value) {
            addCriterion("broadbandtitle like", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleNotLike(String value) {
            addCriterion("broadbandtitle not like", value, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleIn(List<String> values) {
            addCriterion("broadbandtitle in", values, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleNotIn(List<String> values) {
            addCriterion("broadbandtitle not in", values, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleBetween(String value1, String value2) {
            addCriterion("broadbandtitle between", value1, value2, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtitleNotBetween(String value1, String value2) {
            addCriterion("broadbandtitle not between", value1, value2, "broadbandtitle");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeIsNull() {
            addCriterion("broadbandtype is null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeIsNotNull() {
            addCriterion("broadbandtype is not null");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeEqualTo(String value) {
            addCriterion("broadbandtype =", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeNotEqualTo(String value) {
            addCriterion("broadbandtype <>", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeGreaterThan(String value) {
            addCriterion("broadbandtype >", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeGreaterThanOrEqualTo(String value) {
            addCriterion("broadbandtype >=", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeLessThan(String value) {
            addCriterion("broadbandtype <", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeLessThanOrEqualTo(String value) {
            addCriterion("broadbandtype <=", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeLike(String value) {
            addCriterion("broadbandtype like", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeNotLike(String value) {
            addCriterion("broadbandtype not like", value, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeIn(List<String> values) {
            addCriterion("broadbandtype in", values, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeNotIn(List<String> values) {
            addCriterion("broadbandtype not in", values, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeBetween(String value1, String value2) {
            addCriterion("broadbandtype between", value1, value2, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andBroadbandtypeNotBetween(String value1, String value2) {
            addCriterion("broadbandtype not between", value1, value2, "broadbandtype");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIsNull() {
            addCriterion("discountprice is null");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIsNotNull() {
            addCriterion("discountprice is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceEqualTo(Integer value) {
            addCriterion("discountprice =", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotEqualTo(Integer value) {
            addCriterion("discountprice <>", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceGreaterThan(Integer value) {
            addCriterion("discountprice >", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountprice >=", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceLessThan(Integer value) {
            addCriterion("discountprice <", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceLessThanOrEqualTo(Integer value) {
            addCriterion("discountprice <=", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIn(List<Integer> values) {
            addCriterion("discountprice in", values, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotIn(List<Integer> values) {
            addCriterion("discountprice not in", values, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceBetween(Integer value1, Integer value2) {
            addCriterion("discountprice between", value1, value2, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("discountprice not between", value1, value2, "discountprice");
            return (Criteria) this;
        }

        public Criteria andIsstockedIsNull() {
            addCriterion("isstocked is null");
            return (Criteria) this;
        }

        public Criteria andIsstockedIsNotNull() {
            addCriterion("isstocked is not null");
            return (Criteria) this;
        }

        public Criteria andIsstockedEqualTo(Boolean value) {
            addCriterion("isstocked =", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedNotEqualTo(Boolean value) {
            addCriterion("isstocked <>", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedGreaterThan(Boolean value) {
            addCriterion("isstocked >", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("isstocked >=", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedLessThan(Boolean value) {
            addCriterion("isstocked <", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedLessThanOrEqualTo(Boolean value) {
            addCriterion("isstocked <=", value, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedIn(List<Boolean> values) {
            addCriterion("isstocked in", values, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedNotIn(List<Boolean> values) {
            addCriterion("isstocked not in", values, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedBetween(Boolean value1, Boolean value2) {
            addCriterion("isstocked between", value1, value2, "isstocked");
            return (Criteria) this;
        }

        public Criteria andIsstockedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("isstocked not between", value1, value2, "isstocked");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIsNull() {
            addCriterion("originalprice is null");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIsNotNull() {
            addCriterion("originalprice is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceEqualTo(Integer value) {
            addCriterion("originalprice =", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotEqualTo(Integer value) {
            addCriterion("originalprice <>", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceGreaterThan(Integer value) {
            addCriterion("originalprice >", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("originalprice >=", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceLessThan(Integer value) {
            addCriterion("originalprice <", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceLessThanOrEqualTo(Integer value) {
            addCriterion("originalprice <=", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIn(List<Integer> values) {
            addCriterion("originalprice in", values, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotIn(List<Integer> values) {
            addCriterion("originalprice not in", values, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceBetween(Integer value1, Integer value2) {
            addCriterion("originalprice between", value1, value2, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("originalprice not between", value1, value2, "originalprice");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNull() {
            addCriterion("supplierid is null");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNotNull() {
            addCriterion("supplierid is not null");
            return (Criteria) this;
        }

        public Criteria andSupplieridEqualTo(String value) {
            addCriterion("supplierid =", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotEqualTo(String value) {
            addCriterion("supplierid <>", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThan(String value) {
            addCriterion("supplierid >", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThanOrEqualTo(String value) {
            addCriterion("supplierid >=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThan(String value) {
            addCriterion("supplierid <", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThanOrEqualTo(String value) {
            addCriterion("supplierid <=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLike(String value) {
            addCriterion("supplierid like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotLike(String value) {
            addCriterion("supplierid not like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridIn(List<String> values) {
            addCriterion("supplierid in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotIn(List<String> values) {
            addCriterion("supplierid not in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridBetween(String value1, String value2) {
            addCriterion("supplierid between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotBetween(String value1, String value2) {
            addCriterion("supplierid not between", value1, value2, "supplierid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}